import request from '@/router/axios';

// 质检入库
export const facmachineCheck = (row) => {
  return request({
    url: '/api/uic-system/facmachine/check',
    method: 'post',
    data: row
  })
}


// 设备分页列表
export const facmachinePage = (data) => {
  return request({
    url: '/api/uic-system/facmachine/page',
    method: 'get',
    params: {
      ...data
    }
  })
}

// 设备分页下方统计
export const facmachineCount = (data) => {
  return request({
    url: '/api/uic-system/facmachine/count',
    method: 'get',
    params: {
      ...data
    }
  })
}

// 新增或修改设备
export const facmachineSubmit = (row) => {
  return request({
    url: '/api/uic-system/facmachine/submit',
    method: 'post',
    data: row
  })
}


// 删除设备
export const facmachineRemove = (row) => {
  return request({
    url: '/api/uic-system/facmachine/remove',
    method: 'post',
    data: row
  })
}

